<template>
  <div class="search-box">
    <div class="city">西安</div>
    <div class="search-input">
      <img class="logo" src="../assets/logo.png" >
      <span class="shugang"></span>
      <span class="iconfont icon-fangdajing"></span>
      <input type="text" placeholder="立柜式空调" />
    </div>
    <div class="login">登录</div>
  </div>
</template>

<script>
export default {
  name: "Search",
};
</script>

<style scoped>
  
@import url(../assets/iconfonts/iconfont.css);



.search-box {
  width: 100%;
  height: 3.125rem;
  display: flex;
  justify-content: space-around;
  background-color: #f66;
  align-items: center;
  color: white;
}

.search-box div {
  height: 100%;
  line-height: 3.125rem;
  text-align: center;
}

.city,
.login {
  width: 3.75rem;
}

.search-input {
  flex: 1;
  position: relative;
}

.logo{
  position: absolute;
  left:.625rem;
  top:50%;
  transform: translateY(-50%);
}

.shugang{
  position: absolute;
  display: block;
  width: 0px;
  height: 1.5rem;
  border-left:2px solid gray;
  left:3.75rem;
  top:50%;
  transform: translateY(-50%);
}

.icon-fangdajing{
  position: absolute;
  font-size: 1.25rem;
  color: black;
  left:4.375rem;
  top:50%;
  transform: translateY(-50%);
   
}

.search-input input {
  width: 100%;
  height: 1.875rem;
  border-radius: 1.25rem;
  border: none;
  margin-top:-5px;
  padding-left:6rem;
  box-sizing: border-box;
}

</style>